{if count($results) == 0}

<p class="i">No Results Found</p>

{else}

<table width="95%">
	<thead>
		<tr>
			<th align="left" width = "30%">Title</th>
			<th align="left" width = "50%">Summary</th>
			<th align="right" width = "20%">Last Updated</th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$results item=row name=res}
		<tr class="{if $smarty.foreach.res.index % 2 == 0}searchodd{else}searcheven{/if}">
			<td align="left"><a href="v.php?a={$row.FileID}">{$row.Title}</a></td>
			<td align="left">{substr(strip_tags($row.Articledata), 0, 84)}...</td>
			<td align="right">{$row.SubmitDate}</td>
		</tr>
		{/foreach}
	</tbody>
</table>

<div style="padding: 2em; text-align: center;">
{if $page > 1}<a href="abk.php?search={$search}&page={$page - 1}">&lt; &lt; Previous Page</a>{/if}
&nbsp;&nbsp;&nbsp;&nbsp;
Page {$page} of {$max_page}
&nbsp;&nbsp;&nbsp;&nbsp;
{if $page < $max_page}<a href="abk.php?search={$search}&page={$page + 1}">Next Page &gt;&gt;</a>{/if}
</div>

{/if}